import { ApiProperty } from "@nestjs/swagger";
import { IsEmail, IsNotEmpty } from "class-validator";


export class EmailDto{

    @IsNotEmpty({ message: '邮箱不能为空' })
    @IsEmail({}, { message: '不是合法的邮箱格式' })
    @ApiProperty({ example: '1027121860@qq.com' })
    email: string;

}